package org.finalministry.objects.osm;

import javax.xml.bind.annotation.XmlTransient;

import org.codehaus.jackson.annotate.JsonIgnore;

import com.vividsolutions.jts.geom.Geometry;

/**
 * A node represents a specific point on the earth's surface defined by its latitude and longitude. Each node comprises
 * at least an id number and a pair of coordinates.
 * 
 * @author lussopi
 */
public class OSM_Node {

   private Long id;

   private Long osmID;
   private Long originID;

   @XmlTransient
   @JsonIgnore
   private Geometry geometry;

   public OSM_Node(Long id, Long osmID, Long originID, Geometry geometry) {

      super();
      this.id = id;
      this.osmID = osmID;
      this.originID = originID;
      this.geometry = geometry;
   }

   public Long getId() {

      return id;
   }

   public void setId(Long id) {

      this.id = id;
   }

   public Long getOriginID() {

      return originID;
   }

   public void setOriginID(Long originID) {

      this.originID = originID;
   }

   public Geometry getGeometry() {

      return geometry;
   }

   public void setGeometry(Geometry geometry) {

      this.geometry = geometry;
   }

   public Long getOsmID() {

      return osmID;
   }

   public void setOsmID(Long osmID) {

      this.osmID = osmID;
   }

}
